<?php
namespace app\shop31\model;

use think\Model;

class Admin extends Model
{
    public static function getAdmin()
    {
        $sql=Admin::alias('a')
            ->leftjoin("auth c",'a.author=c.id')
             ->field("a.id,a.name,a.headimg,c.aname")
             ->paginate([
                'list_rows'=>2
            ]);
        return $sql;

    }
}